<script id="commentList_tpl" type="text/html">
    <%each data.commentList as arr i%>
    <li class="darenList-item clearfix comment-item">
        <div class="head-img-box pointer">
            <a target="_blank" href="/<%arr.memberId%>/userInfo.html">
                <img class="fleft head-img" src=" <%= imgPath(arr.header)%>" />
            </a>
        </div>
        <div class="fleft">
            <h5 class="font15 clo3 relative" style="width: 1080px;">
                <a target="_blank" href="/<%arr.memberId%>/userInfo.html" class="pointer">
                    <% arr.memberNickName %>
                    <% if arr.memberType==='V' %>
                    <img src="../../public/images/daren1.jpg" class="iconLV1" />
                    <% else if arr.memberType==='D' %>
                    <img src="../../public/images/daren2.jpg" class="iconLV" />
                    <%/if%>
                    <span class="clo9 ml10 font12">等级 <%arr.memberType%><%=toFloat(arr.gradeValue/100),0%></span>
                </a>
                <% if data.userId!=arr.memberId %>
                <button class="btnStyleS ml10 <%if arr.followIs&&arr.followIs!=undefined%> hide <%/if%>"  data-memberid="<%arr.memberId%>"
                        onclick="BASE.COMMON.noticeToMember(this)"> + 关注</button>
                <button class="btnStyleC ml10 <%if !arr.followIs||arr.followIs==undefined%> hide <%/if%>" data-memberid="<%arr.memberId%>"
                        onclick="BASE.COMMON.cancelNotice(this)">已关注</button>
                <%/if%>
                {%if data.status==2%}
                    <%if data.sendId == data.userId%>
                    <button class="common-btn blue-border-btn fright" data-memberid="<%arr.memberId%>"
                            onclick="BASE.PROJECTCONTENT.setAsRecv(this)">选为接单人</button>
                    <%/if%>
                {%else%}
                    <%if arr.memberId== data.recvMemberId%>
                    <span class="red fright">接单人</span>
                    <%/if%>
                {%endif%}
            </h5>
            <div class="clo9 font12"><%=dateFormat(arr.createDateTime,'yyyy-MM-dd hh:mm')%></div>
            <p class="mt20 clo3"> <% arr.content %> </p>
            <!--回复跟帖start-->
            <%if arr.tempReplyList.length>0%>
            <ul class="follow-list">
                <%each arr.tempReplyList as next i%>
                <li class="font14">
                    <p class="clo3 comment-content">
                        <span class="reply">
                            <a target="_blank" href="/<%next.memberId%>/userInfo.html" class="blue pointer"><% next.memberNickName %></a>
                            回复
                            <a target="_blank" href="/<%next.replyToMemberId%>/userInfo.html"  class="blue pointer"> <% next.replyToNickName %></a>：
                            <span class="clo6 reply-content"><% next.content %></span>
                        </span>
                    <div class="tright">
                        <span class="clo9 font12"><%=dateFormat(next.createDateTime,'yyyy-MM-dd hh:mm')%></span>
                        <% if data.userId!=next.memberId %>
                        <a href="javascript:;" data-commentid="<% next.commentId %>" data-replyid="<% next.memberId %>"
                           onclick="BASE.COMMON.replyPrev(this)" class="blue mr10 font12">回复</a>
                        <%/if%>
                    </div>
                    </p>
                </li>
                <%/each%>
            </ul>
            <%/if%>
            <!--回复跟帖end-->
            <% if data.userId!=arr.memberId %>
            <div class="mt20">
                <a href="javascript:;" data-commentid="<% arr.id %>" data-replyid="<% arr.memberId %>"
                   onclick="BASE.COMMON.replyPrev(this)" class="blue">回复</a>
                <!-- <a href="javascript:;" class="clo6 ml30">举报</a>-->
            </div>
            <%/if%>
        </div>
        <!-- 回复框-->
        <div class="tright hide reply-textarea-box">
            <textarea  placeholder="填写回复的内容..." maxlength="255" ></textarea>
            <button class="btnBlueM fright" onclick="BASE.COMMON.addReply(this)" >回复</button>
        </div>
    </li>
    <%/each%>
</script>